package com.zhaopin.rpc.rpc06;

import com.zhaopin.rpc.IProductService;
import com.zhaopin.rpc.IUserService;
import com.zhaopin.rpc.User;

/**
 * 通过一个方法 拿到任意类型的 接口
 */
public class Client {
    public static void main(String[] args) throws Exception {
        IUserService service = (IUserService) Stub.getStub(IUserService.class);
        System.out.println(service.findUserById(456));
        System.out.println(service.saveUser(new User(112,"zhangsan")));
    }
}
